using Volo.Abp.Application.Dtos;

namespace ERP.RepositoryManage.Dtos
{
    /// <summary>
    /// 物料选择DTO
    /// </summary>
    public class MaterialSelectDto : EntityDto<int>
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterielCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterielName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specifications { get; set; }

        /// <summary>
        /// 单位ID
        /// </summary>
        public string UnitsId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 物料类型ID
        /// </summary>
        public int MaterielTypeld { get; set; }

        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string MaterialTypeName { get; set; }

        /// <summary>
        /// 是否启用（1：启用，0：禁用）
        /// </summary>
        public int IsNo { get; set; }

        /// <summary>
        /// 启用状态描述
        /// </summary>
        public string StatusName => IsNo == 1 ? "启用" : "禁用";
    }
} 